package jia.game.combat;

import jia.core.state.CombatState;

import java.awt.*;

public class CombatSpace{
	private int x;
	private int y;
	private boolean isPassable;
	private Image floorSquare;
	private Shape testOval;
	private int tileType;
	private Color ovalColor;
	private CombatState currentCharacter;
	private boolean isOccupied;

	public CombatSpace(boolean passable, Image floorSquare, int x, int y, int tileType, Color color){
		isPassable = passable;
		this.floorSquare = floorSquare;
		this.x = x;
		this.y = y;
		this.tileType = tileType;
		this.setOvalColor(color);
	}

	public boolean isOccupied(){
		return isOccupied;
	}

	public void setOccupied(boolean occupied){
		isOccupied = occupied;
	}

	public CombatState getCurrentCharacter(){
		return currentCharacter;
	}

	public void setCurrentCharacter(CombatState currentCharacter){
		this.currentCharacter = currentCharacter;
	}

	public Color getOvalColor(){
		return ovalColor;
	}

	public void setOvalColor(Color ovalColor){
		this.ovalColor = ovalColor;
	}

	public boolean isPassable(){
		return isPassable;
	}

	public int getTileType(){
		return tileType;
	}

	public void setXY(int x, int y){
		this.x = x;
		this.y = y;
	}

	public void setXY(double x, double y){
		this.x = new Double(x).intValue();
		this.y = new Double(y).intValue();
	}

	public void setTileType(int tileType){
		this.tileType = tileType;
	}

	public int getX(){
		return x;
	}

	public void setX(int x){
		this.x = x;
	}

	public int getY(){
		return y;
	}

	public void setY(int y){
		this.y = y;
	}

	public void setPassable(boolean passable){
		isPassable = passable;
	}

	public Image getFloorSquare(){
		return floorSquare;
	}

	public void setFloorSquare(Image floorSquare){
		this.floorSquare = floorSquare;
	}

	public Shape getTestOval(){
		return testOval;
	}

	public void setTestOval(Shape testOval){
		this.testOval = testOval;
	}
}
